package com.example.dubbonacosuserconsumer.service;

import api.entity.User;
import api.service.UserService2;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class OrderService {

    @DubboReference
    private UserService2 userService;

    public String save(){
        User user = new User("杨通通", "1233");
        userService.SaveUser(user);
        return "success";
    }

}
